import { ref, computed } from 'vue';

const useCount = () => {
    const count = ref(0);
    const double = computed(() => count.value * 2);
    const increment = () => {
        count.value++;
    };
    return { count, double, increment };
};

export default useCount;
